﻿namespace BDRUtils.Cached
{
    public class RedisSettingOption
    {
        /// <summary>
        /// redis服务IP和端口，如127.0.0.1:6379
        /// </summary>
        public string RedisServer { get; set; }

        /// <summary>
        /// redis库
        /// </summary>
        public int RedisDb { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string RedisPassword { get; set; }

        /// <summary>
        /// key的前缀
        /// </summary>
        public string RedisKeyPrex { get; set; }
    }

    public enum CachedEnum
    {
        /// <summary>
        /// 本地缓存
        /// </summary>
        Memory = 0,
        /// <summary>
        /// redis缓存
        /// </summary>
        Redis = 1
    }
}
